package com.kun.result;

/**
 * 统一设置状态枚举
 */
public enum ReturnCode {
    SUCCESS("成功",200),ERROR("失败",404);

    ReturnCode(String message, int state) {
        this.message = message;
        this.state = state;
    }

    private String message;
    private int state;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }
}
